﻿using furion.blog.Domain.IRepositories;
using furion.blog.Domain.MySQL;
using Furion.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.EntityFramework.Core.Repositories
{
    public class GeoRepository : BaseSqlSugarRepository<Geo>, IGeoRepository, ISingleton
    {

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        public async Task<bool> Save(Geo geo) { 
            return await base.InsertAsync(geo);
        }

        /// <summary>
        /// 批量新增
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public async Task<bool> Save(List<Geo> data) { 
           return await base.InsertRangeAsync(data);
        }

    }
}
